from pydantic import BaseModel
from datetime import date, datetime

'''
    基于Pydantic定义用于请求模型和响应模型的类
'''
# class EmpSchema(BaseModel):
#     empno: int
#     ename: str
#     job: str
#     mgr: int
#     hiredate: date
#     sal: float
#     comm: float
#     deptno: int


class Emp_schema(BaseModel):
    empno :int
    ename  :str
    job   :str
    sal :int
    deptno :int


